<?php
if (!defined('EBY_IN')){
	exit('HACKING NO INFO');
}
define('AFX_WEBURL','http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'] . '/');

$op = getgpc('op' , 'G');

$t = getgpc('t' , 'G');



if ($op==='createplay'){
	if ($t==='all'){
		$mid = D('music')->get_add_id();

		foreach ($mid as $key=>$v){
			$r = @file(AFX_WEBURL. 'index.php?do=play&id='.$v['eby_mid']);
			file_put_contents(EBY_ROOT . $_ENV['CFG']['htmlplaypath'] .'/'.$v['eby_mid'] .'.html', $r);
		}
		
	}
	
}









?>